/*
 * PositionTest.cpp
 *
 *  Created on: 2011-7-30
 *      Author: Administrator
 */

#include "gtest/gtest.h"
#include "../src/Position.h"


TEST(PositionTest,Contructor){
	EXPECT_NO_THROW(Position(0,0));
	EXPECT_NO_THROW(Position(8,9));
	EXPECT_NO_THROW(Position(0,9));
	EXPECT_NO_THROW(Position(8,0));

	EXPECT_ANY_THROW(Position(-1,0));
	EXPECT_ANY_THROW(Position(9,10));
	EXPECT_ANY_THROW(Position(0,10));
	EXPECT_ANY_THROW(Position(9,0));
}



